import request from "@/utils/request";
// 菜单基础URL

const JntApi = {
  /**
   *
   * @returns 城市配置列表
   */
  getList(queryParams: any) {
    return request<any>({
      url: "cityConfig/list",
      method: "get",
      params: queryParams,
    });
  },
  //删除
  del(data: any) {
    return request<any>({
      url: "product/del",
      method: "post",
      data: data,
    });
  },
  //一键加价删除
  BatchDel(data: any) {
    return request<any>({
      url: "productBatch/del",
      method: "post",
      data: data,
    });
  },
  //车型限制删除
  checkCardel(data: any) {
    return request<any>({
      url: "vehicleRestriction/del",
      method: "post",
      data: data,
    });
  },
  //城市配置编辑
  cityConfigEdit(data: any) {
    return request<any>({
      url: "cityConfig/edit",
      method: "post",
      data: data,
    });
  },
  //抽佣配置列表
  getCommissionList(queryParams: any) {
    return request<any>({
      url: "commissionConfig/list",
      method: "get",
      params: queryParams,
    });
  },
  //抽佣配置编辑
  commissionEdit(data: any) {
    return request<any>({
      url: "commissionConfig/edit",
      method: "post",
      data: data,
    });
  },
  //抽佣配置删除
  commissionDel(data: any) {
    return request<any>({
      url: "commissionConfig/del",
      method: "post",
      data: data,
    });
  },
  //车型限制列表
  getCheckCarList(queryParams: any) {
    return request<any>({
      url: "vehicleRestriction/list",
      method: "get",
      params: queryParams,
    });
  },
  //车型限制编辑
  CheckCarEdit(data: any) {
    return request<any>({
      url: "vehicleRestriction/edit",
      method: "post",
      data: data,
    });
  },
  //车型列表
  getCarList(queryParams: any) {
    return request<any>({
      url: "vehicleType/list",
      method: "get",
      params: queryParams,
    });
  },
  //产品配置列表
  getProductList(queryParams: any) {
    return request<any>({
      url: "product/list",
      method: "get",
      params: queryParams,
    });
  },
  //围栏查询
  getPolygonList(queryParams: any) {
    return request<any>({
      url: "polygon/list",
      method: "get",
      params: queryParams,
    });
  },
  //围栏删除
  delPolygon(data: any) {
    return request<any>({
      url: "polygon/delete",
      method: "post",
      data: data,
    });
  },
  //查询产品详情
  getProductDetail(queryParams: any) {
    return request<any>({
      url: "product/detail",
      method: "get",
      params: queryParams,
    });
  },
  //产品编辑
  productEdit(data: any) {
    return request<any>({
      url: "product/edit",
      method: "post",
      data: data,
    });
  },
  //产品批量编辑
  productEdits(data: any) {
    return request<any>({
      url: "productBatch/edit",
      method: "post",
      data: data,
    });
  },
  //一键加价列表
  getProductBatchList(queryParams: any) {
    return request<any>({
      url: "productBatch/list",
      method: "get",
      params: queryParams,
    });
  },
  //获取车系列表
  getVehicleList(queryParams: any) {
    return request<any>({
      url: "vehicleSeries/list",
      method: "get",
      params: queryParams,
    });
  },
  //库存列表
  getPriceConfigList(queryParams: any) {
    return request<any>({
      url: "inventory/list",
      method: "get",
      params: queryParams,
    });
  },
  //库存列表
  priceConfigDetail(queryParams: any) {
    return request<any>({
      url: "inventory/detail",
      method: "get",
      params: queryParams,
    });
  },
  //库存编辑
  priceConfigEdit(data: any) {
    return request<any>({
      url: "inventory/edit",
      method: "post",
      data: data,
    });
  },
  priceConfigDel(params: any) {
    return request<any>({
      url: "insurance/delete",
      method: "get",
      params: params,
    });
  },

  //车系配置
  vehicleSeriesEdit(data: any) {
    return request<any>({
      url: "vehicleSeries/edit",
      method: "post",
      data: data,
    });
  },
  //围栏编辑
  polygonEdit(data: any) {
    return request<any>({
      url: "polygon/edit",
      method: "post",
      data: data,
    });
  },
  //站点新增|| 编辑
  stationEdit(data: any) {
    return request<any>({
      url: "station/edit",
      method: "post",
      data: data,
    });
  },
  //站点配置列表查询
  getStationList(queryParams: any) {
    return request<any>({
      url: "station/list",
      method: "get",
      params: queryParams,
    });
  },
};

export default JntApi;
